// 用户模块的vuex的操作

import { setStorageToken, getStorageToken } from '@/utils/storage'

export default {
  namespaced: true,
  state: {
    token: getStorageToken()
  },
  mutations: {
    setToken(state, payload) {
      state.token = payload

      // 把 token数据本地存储起来
      setStorageToken()
    }
  },
  actions: {},
  getters: {}
}
